package com.app.util;

import java.util.Properties;

public class Constant {
	
	public static String WebRoot;	
	public static Properties prop;
	
	public static String clientIP = "";
	public static String serverURL = "";
	public static String serverLogin = "";
	public static String clientFile = "";
	
	static {
		
		prop = new Properties();
		try {
			WebRoot = Constant.class.getResource("/").getPath().split("WEB-INF")[0];
			prop.load(Constant.class.getResourceAsStream("/appconfig.properties"));
			clientIP = prop.getProperty("clientIP");
			serverURL = prop.getProperty("serverURL");
			serverLogin = prop.getProperty("serverLogin");
			clientFile = prop.getProperty("clientFile");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
